Leadtools.Dicom.AddIn Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Remove(TKey) Method
See Also 
Leadtools.Dicom.AddIn Namespace > Generic ThreadSafeDictionary Class > Remove Method : Remove(TKey) Method



key
The key of the element to remove.
key
The key of the element to remove.
Removes the element with the specified key from the Generic IDictionary.

Syntax

Visual Basic (Declaration) 
Overloads Public Overridable Function Remove( _
   ByVal key As TKey _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ThreadSafeDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As Boolean
 
value = instance.Remove(key)
C# 
public virtual bool Remove( 
   TKey key
)
C++/CLI 
public:
virtual bool Remove( 
   TKey key
) 

Parameters

key
The key of the element to remove.

Return Value

true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original Generic IDictionary.

Exceptions

ExceptionDescription
ArgumentNullExceptionkey is null.
NotSupportedException The Generic IDictionary is read-only.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features